package com.atguigu;

import org.junit.Test;

import java.util.Calendar;
import java.util.Date;

public class test {

    @Test
    public void test01(){
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.MONTH,-2);
        calendar.add(Calendar.MONTH,1);
        Date time = calendar.getTime();
        System.out.println(time);
    }
}
